<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<fmt:setBundle basename="messages.messages"/>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<link rel="stylesheet" href="/Epics/jslib/global.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><fmt:message key="siteName"/></title>
</head>

<body>
	<%@ include file="../Template/TMainLine.jsp" %>
	<%@ include file="../Template/TMessage.jsp" %>
	
	<h1>${currentUser.firstName} ${currentUser.lastName}</h1>
	
	<h3>Following</h3>
	
	<c:choose>
	<c:when test="${!empty currentUser.following}">
		<c:forEach items="${currentUser.following}" var="u">
			<a href="SAuthorsProfile?userId=${u.id}">${u.firstName} ${u.lastName}</a><br/>		
		</c:forEach>
	</c:when><c:otherwise>
		<p>No following</p>
	</c:otherwise>
	</c:choose>
	
	<h3>Followers</h3>
	
	<c:choose>
	<c:when test="${!empty currentUser.followers}">
		<c:forEach items="${currentUser.followers}" var="u">
			<a href="SAuthorsProfile?userId=${u.id}">${u.firstName} ${u.lastName}</a><br/>		
		</c:forEach>
	</c:when><c:otherwise>
		<p>No followers</p>
	</c:otherwise>
	</c:choose>
		
</body>
</html>